﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLK.Database.DALs;

namespace QLK.Database.BLLs
{
    public class TransferBLL
    {
        private TransferDAL dal;

        public TransferBLL()
        {
            dal = new TransferDAL();
        }

        public List<Transfer> TransferGetAll()
        {
            return dal.TransferGetAll();
        }

        public Transfer TransferGetByID(int TransID)
        {
            if (TransID > 0)
                return dal.TransferGetByID(TransID);
            return null;
        }

        public bool TransferInsert(Transfer Trans)
        {
            return dal.TransferInsert(Trans);
        }

        public bool TransferUpdate(Transfer Trans)
        {
            return dal.TransferUpdate(Trans);
        }

        public bool TransferDeleteByID(int TransID)
        {
            return dal.TransferDeleteByID(TransID);
        }

    }
}
